{% load i18n %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
    <title>{% block title %} {{ blog.title }}{% endblock %}</title>
    <meta name="generator" content="CDMlog" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" media="screen" href="/static/styles/themes/ui-lightness/jquery-ui.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/static/styles/ui.jqgrid.css" />
    <link rel="stylesheet" href="/static/admin/style.css" type="text/css" media="screen" />
   <style>
html, body {
    margin: 0;
    padding: 0;
    font-size: 75%;
}
</style>
<link media="screen" rel="stylesheet" href="/static/styles/colorbox.css" />

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="/static/js/i18n/grid.locale-cn.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery.jgrid.useJSON=true;
</script>

<script src="/static/js/jquery.jqGrid.min.js" type="text/javascript"></script>

<script src="/static/js/jquery.colorbox-min.js"></script>
     <script type="text/javascript" src="/static/js/utils.js"></script>

<script>
var userSettings = {'url':'/','uid':'{{self.author.key}}','time':'{% now "r" %}'};

$(function(){
$('#more').click(
	function(){
		$('#lang_menu').show();
		$('body').one('click',function(){
								$('#lang_menu').hide();}
								);
		return false;
});
});
</script>
    {% block header %}{% endblock %}
{%mf admin_head%}{%endmf%}
</head>
<body>

<!-- Dashboard Starts -->
<div id="dashboard">
<div style="float:left"> <a title="Are you lost?" href="/admin/">{% trans  "CDM Dashboard" %}</a><a href="{{self.logouturl}}">[{% trans "Logout"%}]</a>
</div>
<div style="float:right;margin-right:8px;font-size:11px">
<a href="#" id="more" >{{blog.cur_language.lang}}<small>&#9660;</small></a></div>
<div class="clear"></div>
<div id="lang_menu">
{%for lang in blog.get_langs%}
<a href="/admin/lang?language={{lang.code}}">{{lang.lang}}</a>
{%endfor%}


</div>

</div>
<!-- Dashboard Ends -->

<!-- Header Starts -->
<div id="header">
    <div class="headings">
      <h1><a href="/" >{{ blog.title }}</a></h1>
      <h2>{{ blog.subtitle }}</h2>
      <div class="clear"></div>
    </div>
</div>
<!-- Header Ends -->

<!-- Nav Starts -->
<div id="nav">
<ul >
    <li class='page_item page-item-2 {{current|check_current:"write"}}'><a href="/admin/blog" title="Write post">{% trans "Write" %}</a></li>
    <li class='page_item page-item-2 {{current|check_current:"posts"}}'><a href="/admin/entries/blog" title="Posts">{% trans "Posts" %}</a></li>
    <li class='page_item page-item-2 {{current|check_current:"pages"}}'><a href="/admin/entries/page" title="Pages">{% trans "Pages" %}</a></li>
    <li class='page_item page-item-2 {{current|check_current:"links"}}' ><a href="/admin/links" title="Blogroll">{% trans "Links" %}</a></li>
     <li class='page_item page-item-2 {{current|check_current:"categories"}}' ><a href="/admin/categories" title="categories">{% trans "Categories" %}</a></li>
    <li class='page_item page-item-2 {{current|check_current:"comments"}}' ><a href="/admin/comments" title="Comments">{% trans "Comments" %}</a></li>
<li class='page_item page-item-2 {{current|check_current:"files"}}' ><a href="/admin/filemanager" title="Files">{% trans "Files" %}</a></li>
<li class='page_item page-item-2 {{current|check_current:"albums"}}' ><a href="/admin/albums/" title="Albums">{% trans "Albums" %}</a></li>
<li class='page_item page-item-2 {{current|check_current:"media"}}' ><a href="/admin/entries/download" title="Download">{% trans "Download" %}</a></li>
<li class='page_item page-item-2 {{current|check_current:"article"}}' ><a href="/admin/entries/article" title="Artile">{% trans "Article" %}</a></li>
{%if self.is_admin%}

   <li class='page_item page-item-2 {{current|check_current:"config"}}'><a href="/admin/setup" title="setup">{% trans "Configuration" %}</a></li>
   <li class='page_item page-item-2 {{current|check_current:"plugins"}}'><a href="/admin/plugins" title="plugins">{% trans "Plugins" %}</a></li>

    <li class='page_item page-item-2 {{current|check_current:"status"}}'><a href="/admin/status" title="Cache">{% trans "Cache" %}</a></li>
    <li class='page_item page-item-2 {{current|check_current:"authors"}}'><a href="/admin/authors" title="authors">{% trans "Authors" %}</a></li>
    <li class='page_item page-item-2 {{current|check_current:"otherdoc"}}'><a href="/admin/otherdoc" title="otherdoc">{% trans "Other Doc" %}</a></li>
    {% block topmenu %}
    {% endblock %}
	{%mf admin_topmenu%}{%endmf%}
{%endif%}
    <li class='page_item page-item-2 {{current|check_current:"help"}}' style="float:right;font-size:1em"><a href="http://www.51203344.tk/wiki" id="dshelp" rel="facebox" title="help">{% trans "help" %}</a></li>


    <div class="clear"></div>

</ul>
</div>
<div id="nav2">{%block nav2%}{%endblock%}</div>
    <div id="hiddenmessage" >{% block h_message%}{%endblock%}</div>
<!-- Nav Ends -->

<!-- Container Starts -->
<div id="container">


    <!-- Full Width Start-->
    {% block featured %}
    {% endblock %}
    <!-- Featured Ends -->

    {% block content %}{{content}}{% endblock %}




<div class="clear"></div>
</div>
<!-- Container Ends -->

<!-- Footer Starts -->
<div id="footer">
{%mf admin_footer%}
    <div class="fontmlog">
        <div id="credits">
            <!-- Credit link can be removed by giving a $5 donation, it'll help us all build good karma! -->
            <div class="flogo">
                <a href="http://www.ccdm.tk"> CDM {{blog.version}}</a> for <br><a href="http://code.google.com/appengine/" > google app engine</a>
            </div>
            <span>Theme from: <a href="http://www.freshpressthemes.com" title="See more fresh themes" target="_blank">FreshPress Themes</a> {% now "Y" %}</span>
            <!-- Do Not Remove -->

        </div>
         <div class="clear"></div>

    </div>
{%endmf%}
</div>
<!-- Footer Ends -->

</body>
</html>
